package org.ami.onlineschool.model;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class Course {
	private List<Semester> semesters = new ArrayList<Semester>();
	private String name;
	private String id = UUID.randomUUID().toString();
	
	public Course() {
		super();
	}
	public Course(String name) {
		super();
		this.name = name;
	}
	public List<Semester> getSemesters() {
		return semesters;
	}
	public void setSemesters(List<Semester> semesters) {
		this.semesters = semesters;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return name + ": " + semesters.size() + " semesters";
	}
	
	
	
}
